import 'package:flutter/material.dart';

enum LevelStatus { locked, unlocked, completed }

// 扩展LevelStatus枚举以包含中文名称
extension LevelStatusExtension on LevelStatus {
  String get chineseName {
    switch (this) {
      case LevelStatus.locked:
        return '锁定';
      case LevelStatus.unlocked:
        return '已解锁';
      case LevelStatus.completed:
        return '已完成';
    }
  }
}

class LevelCategory {
  final String name;
  final IconData icon;

  const LevelCategory({required this.name, required this.icon});
}

class DifficultyTier {
  final int level;
  final String name;
  final Duration timeLimit;
  final NumberRange numberRange;

  const DifficultyTier({
    required this.level,
    required this.name,
    required this.timeLimit,
    required this.numberRange,
  });
}

class NumberRange {
  final int min;
  final int max;

  const NumberRange(this.min, this.max);
}